<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('production_process_detail', function (Blueprint $table) {
            $table->id()->unique()->comment('id');
$table->integer('process_id')->default(0)->comment('生产工单工序id');
$table->string('process_name', 50)->comment('工艺名称');
$table->string('process_code', 10)->comment('工艺代码');
$table->decimal('report_qty')->comment('报工数量');
$table->integer('people')->comment('报工人数');
$table->decimal('hours')->comment('报工工时(分)');
$table->creatorId();
$table->createdAt();
$table->updatedAt();
$table->deletedAt();

$table->engine='InnoDB';
$table->comment('生产工单工序报工单');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('production_process_detail');
    }
};
